package tech.aistar.mapper.personal;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import tech.aistar.entity.personal.Purchase;

import java.util.Date;

/**
 * Created by LJX on 2019/9/25.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:spring/spring-*.xml")
public class testPurchaseMapper {
    @Autowired
    private PurchaseMapper purchaseMapper;
    @Test
    public void testUpdate(){
        purchaseMapper.update(1);
    }
    @Test
    public void testsave(){
        Purchase purchase = new Purchase(null,"2345",new Date(),2,0,0,0,200.00,1);
    }
}
